import request from '@/utils/request'

// 查询借阅车列表
export function listBorcart(query) {
  return request({
    url: '/system/borcart/list',
    method: 'get',
    params: query
  })
}

// 查询借阅车详细
export function getBorcart(cartId) {
  return request({
    url: '/system/borcart/' + cartId,
    method: 'get'
  })
}

// 新增借阅车
export function addBorcart(data) {
  return request({
    url: '/system/borcart',
    method: 'post',
    data: data
  })
}

// 修改借阅车
export function updateBorcart(data) {
  return request({
    url: '/system/borcart',
    method: 'put',
    data: data
  })
}

// 删除借阅车
export function delBorcart(cartId) {
  return request({
    url: '/system/borcart/' + cartId,
    method: 'delete'
  })
}
